package com.fitness.fitness.constants;

public interface ServiceConstants {

    Long CATEGORY_ROOT_ID = 0L;

    /**
     * 短信验证码缓存key前缀
     * 类型为VerificationEnum
     */
    String SMS_PREFIX = "sms_%s_%s";//1s=短信类型，2s=手机号，缓存值为验证码，ttl为一分钟

    String SMS_FIND_PHONE_PREFIX = "sms_find_phone_%s";//%s=uuid

    /**
     * 结算商品key
     */
    String BUY_SETTLE_CACHE_KEY_PREFIX = "settle_%s_%s";//%1s=uuid,%2s=uid

    /**
     * 缓存sn号
     */
    String BUY_SETTLE_SN_CACHE_KEY_PREFIX = "settleSn_%d_%s";//%1s=uid,%2s=sn

    /**
     * 首页推荐的分类
     */
    String RECOMMEND_CATEGORY_KEY = "recommendCategoryKey";

    /**
     * 首页推荐的品牌
     */
    String RECOMMEND_BRAND_KEY = "recommendBrandKey";
}
